import React, { useState } from 'react';
import { Input } from 'antd';
import { Button, Flex } from 'antd';
function Search({pp}) {
    const [keyWord,setKeyWord]=useState('')
    const sou=()=>{
        pp({keyWord})
    }
    return (
        <div>
            <Input placeholder="请输入" style={{ width: '200px' }} value={keyWord} onChange={(e)=>{setKeyWord(e.target.value)}} />
            <Button type="primary" onClick={sou}>搜索</Button>
        </div>
    );
}

export default Search;